export default class Process {
    constructor(pid){
        this.pid = pid;
        this.state = "就绪态";
        this.PC = 0;
        this.pageTable = [
            { pageId: 0, blockId: "NULL", P: 0, A: "", M:0, outer: "NULL", LRU: 0 },
            { pageId: 1, blockId: "NULL", P: 0, A: "", M:0, outer: "NULL", LRU: 0 },
            { pageId: 2, blockId: "NULL", P: 0, A: "", M:0, outer: "NULL", LRU: 0 },
            { pageId: 3, blockId: "NULL", P: 0, A: "", M:0, outer: "NULL", LRU: 0 },
        ];
        this.fileTable = [
            {id: 1, fileName: "abc.exe", description: "NULL", pointer: "#"},
        ];
    }
}

export class INode {
    constructor(INode, fileName, type, content){
        this.fileName = fileName;
        this.iNode = INode;
        this.type = 0;
        if (type) this.type = type;
        this.content = [
            {fileName: "abc.exe", inode: "03H" },
            {fileName: "aki", inode: "07H" },
        ];
        if (content) this.content = content;
    }
}

export class PageDetail {
    constructor(pageId){
        this.pageId = pageId;
        this.detail = [
            null, null, null, null, null, null, null, null,
            null, null, null, null, null, null, null, null
        ]
    }
}